package com.lkm.app_ui.m.Imple.hsj522;

import com.lkm.frame.entity.ResponEntityAbs;



public class ReadResponEntity extends ResponEntityAbs<byte[]> {




    public ReadResponEntity(int SEQNR, int statue, byte[] data) {
        this.statue = statue;
        this.SEQNR = SEQNR;
        setData(data);

        setCode(-1);
        if (statue == 0x00) {
            setCode(1);
        }

    }



    private int statue;
    private int SEQNR;

    @Override
    public boolean isNotSrcData() {
        return false;
    }

    public int getStatue() {
        return statue;
    }

    public void setStatue(int statue) {
        this.statue = statue;
    }

    public int getSEQNR() {
        return SEQNR;
    }

    public void setSEQNR(int SEQNR) {
        this.SEQNR = SEQNR;
    }






    @Override
    public boolean isSuccess() {
        return getCode() == 1;
    }

    @Override
    public ResponEntityAbs<byte[]> success(byte[] bytes, String msg) {
        return null;
    }

    @Override
    public ResponEntityAbs<byte[]> fail(byte[] bytes, String msg) {
        return null;
    }
}
